package com.ivision.service.impl;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ivision.dao.StudentDAO;
import com.ivision.domain.Student;
import com.ivision.service.StudentService;


//@Service
public class StudentServiceImpl implements StudentService {
	private StudentDAO studentDAO;
	
	public Student getStudentInfoById(int studentId){
		//do any business logic based on your requirement.
		Student student = studentDAO.getStudentById(studentId);
		
		return student;
	}

	public StudentDAO getStudentDAO() {
		return studentDAO;
	}

	public void setStudentDAO(StudentDAO studentDAO) {
		this.studentDAO = studentDAO;
	}
	

	
}
